<?php
session_start(); //启动会话
session_unset();  //删除会话
session_destroy(); //结束会话
//header("location:user/login.php");
$referer = $_SERVER['HTTP_REFERER']; //来路信息。就是上一页
header("Location:$referer"); //浏览器跳转
?>